import Vue from 'vue';
import App from './App';
import router from './router';
import axios from 'axios';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-default/index.css';    // 默认主题
// import '../static/css/theme-green/index.css';       // 浅绿色主题
import "babel-polyfill";

import mytem from './components/mytabledd.vue'
import payordertem from './components/payorderCom.vue'
import qrcodetem from './components/qrcodeCom.vue'
import leveltem from './components/levelCom.vue'
import configtem from './components/configCom.vue'
import aboutcom from './components/aboutcom.vue'
import noticecom from './components/noticecom.vue'
import suggestcom from './components/suggestcom.vue'

Vue.use(ElementUI);
Vue.component('my-tabsb',mytem);
Vue.component('my-tabpayorder',payordertem);
Vue.component('my-tabqrcode',qrcodetem);
Vue.component('my-tablevel',leveltem);
Vue.component('my-tabconfig',configtem);
Vue.component('my-tababout',aboutcom);
Vue.component('my-tabnotice',noticecom);
Vue.component('my-tabsuggest',suggestcom);

Vue.filter('enableFilter', function (value) {
    if(value === 0)
        return '否'
    else if(value === 1)
        return '是'
})
Vue.filter('userTypeFilter', function (value) {
    if(value === 1)
        return '包月会员'
    else if(value === 2)
        return '预存扣费'
    else if(value === 3)
        return '正常结算'
})
Vue.filter('orderTypeFilter', function (value) {
    if(value === 1)
        return '支付宝'
    else if(value === 2)
        return '微信'
    else if(value === 3)
        return 'QQ钱包'
})
Vue.filter('orderStateilter', function (value) {
    if(value === 1)
        return '待支付'
    else if(value === 2)
        return '已支付'
    else if(value === 3)
        return '已通知'
    else if(value === 0)
        return '失效'
})
Vue.prototype.$axios = axios;
new Vue({
    router,
    render: h => h(App)
}).$mount('#app');